package com.css.zfzx.sjcj.modules.hddcA1LiteratureDocumentTable.service.impl;

import cn.afterturn.easypoi.excel.entity.result.ExcelVerifyHandlerResult;
import cn.afterturn.easypoi.handler.inter.IExcelVerifyHandler;
import com.css.zfzx.sjcj.common.excel.util.ActiveFaultEasyExcelVerifyHelper;
import com.css.zfzx.sjcj.modules.hddcA1LiteratureDocumentTable.viewobjects.HddcA1LiteraturedocumenttableVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * <p>区域调查数据-文献资料库-属性表管理, Excel导入校验</p>
 *
 * @author liuhy
 * @date 2021/8/30
 */
@Component
public class LiteratureInformationExcelVerifyHandler implements IExcelVerifyHandler<HddcA1LiteraturedocumenttableVO> {

    private final ActiveFaultEasyExcelVerifyHelper helper;

    @Autowired
    public LiteratureInformationExcelVerifyHandler(ActiveFaultEasyExcelVerifyHelper helper) {
        this.helper = helper;
    }

    @Override
    public ExcelVerifyHandlerResult verifyHandler(HddcA1LiteraturedocumenttableVO vo) {
        ExcelVerifyHandlerResult result = helper.verify(vo);

        return result;
    }
}
